<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>医生排班出诊</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/lobsteruiframe/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <link href="/lobsteruiframe/layuiadmin/style/admin.css" rel="stylesheet" />
    <script src="/lobsteruiframe/layuiadmin/layui/layui.js"></script>
    <script src="/jslib/jquery-3.4.1.min.js"></script>
    <script src="/jslib/lobster.js"></script>

    <script src="doctorschedual.js"></script>
</head>

<body>

    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto">
                <div class="layui-input-inline">
                    <label class="layui-form-label">所属科室：</label>
                    <div class="layui-input-block">
                        <select id="cmbDept" name="cmbDept"> </select>
                    </div>
                </div>

                <div class="layui-input-inline">
                    <label class="layui-form-label">出诊状态：</label>
                    <div class="layui-input-block">
                        <select id="status" name="status">
                            <option value="0" selected>全部</option>
                            <option value="1">已出诊</option>
                            <option value="2">未出诊</option>
                        </select>
                    </div>
                </div>
                <div class="layui-input-inline">
                    <label class="layui-form-label">医生姓名：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" autocomplete="off" name="txtkeyword" id="txtkeyword"
                            placeholder="请输入医生姓名" />
                    </div>
                </div>
                <div class="layui-input-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-app-front-search"
                        id="btnSearch">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
                    </button>
                </div>
            </div>

            <div class="layui-card-body">

                <table id="tabledata" lay-filter="tabledata"></table>

            </div>
        </div>
    </div>

</body>

</html>

<script type="text/html" id="barSex">
    {{# if(d.Sex==1){ }}
    <span>男</span>
    {{# } else if(d.Sex==2){ }}
    <span>女</span>
    {{# }else{ }}
    <span>未知</span>
    {{# } }}
</script>

<script type="text/html" id="barRowImg">
    {{# if(d.HeadImg!="" && d.HeadImg!=null){ }}
    <img src="{{d.HeadImg}}" style="width:40px;height:40px;" />
    {{# } else { }}
    <img src="/resource/doctor.jpg" style="width:40px;height:40px;" />
    {{# } }}
</script>

<script type="text/html" id="barRowDoctor">
    <a class="layui-btn layui-btn-xs" lay-event="schedual_down"><i class="layui-icon layui-icon-edit"></i>线下排班</a>
    <a class="layui-btn layui-btn-xs" lay-event="schedual_up"><i class="layui-icon layui-icon-edit"></i>线上排班</a>
    <a class="layui-btn layui-btn-xs" lay-event="setprice"><i class="layui-icon layui-icon-edit"></i>配置诊查费</a>
</script>


<script type="text/html" id="dlg_generateschedual">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-input-inline">
                <label class="layui-form-label">排班日期：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" id="schedualdate" name="schedualdate" />
                </div>
            </div>


            <div class="layui-input-inline">
                <button class="layui-btn" lay-submit lay-filter="btnSearchSchedual" id="btnSearchSchedual">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
                    </button>
            </div>
        </div>

        <div class="layui-card-body">

            <table id="tableschedual" lay-filter="tableschedual"></table>

        </div>
    </div>
</script>

<script type="text/html" id="tool_generateschedual">
    <a class="layui-btn layui-btn-xs" lay-event="generate"><i class="layui-icon layui-icon-edit"></i>生成排班</a>
</script>

<script type="text/html" id="barSchedual">
    {{# if(d.Flag==0){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs"
        lay-event="disable"><i class="layui-icon layui-extend-stop"></i>停用</a>
    {{# } else { }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="enable"><i class="layui-icon layui-icon-ok"></i>启用</a>
    {{# } }}
</script>

<script type="text/html" id="text_TimeRange">
    {{# if(d.TimeRange==1){ }}
    <span>上午</span>
    {{# } else if(d.TimeRange==2){ }}
    <span>下午</span>
    {{# }else{ }}
    <span>晚上</span>
    {{# } }}
</script>

<script type="text/html" id="dlg_generatefrom">
    <div class="layui-card" style="padding:10px;">
        <form class="layui-form" lay-filter="formData" id="formData">
            <div class="layui-form-item">
                <label class="layui-form-label">排班日期：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" id="schedualdate_from" name="schedualdate_from" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">上午号源</label>
                <div class="layui-input-block">
                    <input type="text" required class="layui-input" name="am_num" value="0" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">下午号源</label>
                <div class="layui-input-block">
                    <input type="text" required class="layui-input" name="pm_num" value="0" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">晚上号源</label>
                <div class="layui-input-block">
                    <input type="text" required class="layui-input" name="nm_num" value="0" />
                </div>
            </div>

            <div class="layui-form-item layui-hide">
                <input type="text"  name="doctId" value="0" />
                <input type="text"  name="deptId" value="0" />
                <input type="text"  name="SchedType" value="0" />
                <input type="button" lay-submit lay-filter="submit_generate" id="submit_generate" value="保存">
            </div>
        </form>
    </div>
</script>

<script type="text/html" id="dlg_setpricefrom">
    <div class="layui-card" style="padding:10px;">
        <form class="layui-form" lay-filter="formData2" id="formData2">
            
            <div class="layui-form-item">
                <label class="layui-form-label">挂号费</label>
                <div class="layui-input-block">
                    <input type="text" required class="layui-input" name="RegPrice" value="0" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">问诊费</label>
                <div class="layui-input-block">
                    <input type="text" required class="layui-input" name="IHPrice" value="0" />
                </div>
            </div>

            <div class="layui-form-item layui-hide">
                <input type="text"  name="Id" value="0" />
                <input type="button" lay-submit lay-filter="submit_setprice" id="submit_setprice" value="保存">
            </div>
        </form>
    </div>
</script>